// 首页的样式less文件
@import "common";
// @import 导入的意思 可以把一个样式文件导入到另外一个样式文件里面
// link 是把一个 样式文件引入到 html页面里面
body {
  min-width: 320px;
  width: 15rem;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica;
  background: #f2f2f2;
  height: 50rem;
}
// 页面元素rem计算公式： 页面元素的px / html 字体大小 50
// search-content
@baseFont: 50;
.search-content {
  display: flex;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15rem;
  height: 88rem / @baseFont;
  background-color: #ffc001;
  .classify {
    width: 44rem / @baseFont;
    height: 70rem / @baseFont;
    margin: 11rem / @baseFont 25rem / @baseFont 7rem / @baseFont 24rem /
      @baseFont;
    background: url(../images/classify.png) no-repeat;
    // 背景缩放
    background-size: 44rem / @baseFont 70rem / @baseFont;
  }
  .search {
    flex: 1;
    input {
      outline: none;
      width: 100%;
      border: 0;
      height: 66rem / @baseFont;
      border-radius: 33rem / @baseFont;
      background-color: #fff2cc;
      margin-top: 12rem / @baseFont;
      font-size: 25rem / @baseFont;
      padding-left: 55rem / @baseFont;
      color: #757575;
    }
  }
  .login {
    width: 75rem / @baseFont;
    height: 70rem / @baseFont;
    line-height: 70rem / @baseFont;
    margin: 10rem / @baseFont;
    font-size: 25rem / @baseFont;
    text-align: center;
    color: #fff;
  }
}

// banner
.banner {
  width: 750rem / @baseFont;
  height: 368rem / @baseFont;
  img {
    width: 100%;
    height: 100%;
  }
}
// ad
.ad {
  display: flex;
  a {
    flex: 1;
    img {
      width: 100%;
    }
  }
}
// nav
nav {
  width: 750rem / @baseFont;
  a {
    float: left;
    width: 150rem / @baseFont;
    height: 140rem / @baseFont;
    text-align: center;
    img {
      display: block;
      width: 82rem / @baseFont;
      height: 82rem / @baseFont;
      margin: 10rem / @baseFont auto 0;
    }
    span {
      font-size: 25rem / @baseFont;
      color: #333;
      line-height: ;
    }
  }
}
// footer
footer{position: fixed;
  background-color: #fff;
  bottom: 0px;
  left: 50%;
  text-align: center;
  transform:translateX(-50%);
  width: 15rem;
  height: 100rem/@baseFont;
  display: flex;
  height: 105rem/@baseFont;
  border-radius: 10px;
  a{display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 18rem/@baseFont;
    color: black;
    span{line-height:1rem ;
      flex: 50%;
    }
    span:nth-child(1){
      font-size: 40rem/@baseFont;
      // color: #ccc;
      color: skyblue;
    }
  }
}